import requests
import allure
base_url = "http://121.40.86.4:8899"

class TestCRMEB:
    # 发起登录请求：/adminapi/login
    # 用户分组查询接口
    @allure.story("查询用户分组")
    def test_searchGroup(self,login): # 先去做登录
        response = requests.get(url = base_url+"/adminapi/user/user_group/list?page=1&limit=",headers={"Authori-zation":"Bearer " + str(login)}) # 关联token
        # 断言
        assert response.status_code == 200
        assert response.json()['msg'] == "success"




